package com.sky.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

//@Component
public class SpringTaskDemo {


    //@Scheduled(cron = "*/5 * * * * ?")
    public void excuteTask() {
        System.out.println("当前时间:" + LocalDateTime.now());
    }
}
